import { cloudbaseApp } from '@/cloudbaseapi/cloudbase-api'
import axios from 'axios'
cloubase_function()
export function cloubase_function() {
  cloudbaseApp().auth().getAuthHeaderAsync().then(res=>{
    if (res) {
      console.log(res)
      const request = axios.create({
        baseURL: 'http://wx.top237.top',
        headers: { ...res }
      })
      request({
        url: '/hello_world',
        method: 'post'
      }).then(res => {
        console.log(res)
      })
    } else {
      console.log('请重新登录')
    }
  })
}
